//
//  CommonTools.swift
//  Mircore
//
//  Created by apple on 16/8/10.
//  Copyright © 2016年 飞羽. All rights reserved.
//

import UIKit

//切换根视图控制器的通知名

let  SwitchRootVCNotification  = "SwitchRootVCNotification"


//点击表情按钮的通知名

let  DidSelectedEmoticonNotification  = "DidSelectedEmoticonNotification"


//点击删除表情按钮的通知名

let  DidSelectedDeleteEmoticonNotification = "DidSelectedDeleteEmoticonNotification"

//当前屏幕的宽度

let  ScreenWidth  = UIScreen.mainScreen().bounds.size.width

//当前屏幕的高度

let  ScreenHeight = UIScreen.mainScreen().bounds.size.height

//通过随机数返回颜色对象

func  RandomColor()  -> UIColor  {

    //色值取的范围是 0 - 255
    
    let  red  = random()  % 256
    
    let  green  = random()  % 256
    
    let  blue  = random()  % 256
    
    
    //red  green  blue  alpha  的取值范围是  0 - 1 
    return  UIColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)



}